<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>我的网点拜访报告</title>

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">

    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>

    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 13px;overflow-x:auto">
<div class="page-heade clearfix">
    <h2 class="clearfix text-center">
        <a class="col-md-3 title_color H_right" style="font-size: 16px;color:#333" href="{:url('Other/mynetbaifang')}">我的网点拜访任务</a>
        <a class="col-md-3 title_color H_right" style="font-size: 16px;color:#333;"
           href="{:url('Other/mynetbaifang1')}">我的网点拜访报告</a>
        <a class="col-md-3 title_color H_right" style="font-size: 16px;color:#333;"
           href="{:url('Other/mynetbaifang2')}">我的已安排的网点拜访线路</a>
        <a class="col-md-3 title_color H_active" style="font-size: 16px;" href="{:url('Other/mynetbaifang3')}">我的网点拜访线路管理</a>
    </h2>
</div>
<form action="" class="form-inline" id="form1">
    <table class="table table-bordered bud_hei">
        <tr>
            <td colspan="6">
                <button class="btn btn-warning btn-sm" onclick="back()" type="button">返回</button>
            </td>
        </tr>
        <tr>
            <td class="text-right">线路编号：</td>
            <td><input type="text" name="xlbh" class="form-control" value="{$xlbh}"></td>
            <td class="text-right">线路名称：</td>
            <td><input type="text" name="xlmc" class="form-control" value="{$xlmc}"></td>
            <td class="text-right">所属城市：</td>
            <td><input type="text" name="sscs" class="form-control" value="{$sscs}"></td>
        </tr>
        <tr>
            <td class="text-right">已选择网点：</td>
            <td><input type="text" name="bfwd" class="form-control" value="{$bfwd}"></td>
            <td class="text-right">相关人员：</td>
            <td><input type="text" name="xgry" class="form-control" value="{$xgry}"></td>
            <td class="text-right" colspan="2"></td>
        </tr>
        <tr>
            <td colspan="6" class="text-center">
                <button class="btn-sm btn-info btn">查询</button>
                <span class="lr_5"></span>
                <button class="btn-sm btn-info btn" type="reset" id="reset">清空查询条件</button>
            </td>
        </tr>
    </table>
</form>
<table class="table table-striped table-bordered table-hover bud_hei text-center" style="width: 100%;">
    <tr class="info">
        <td>拜访编号</td>
        <td>线路名称</td>
        <td>已选择网点</td>
        <td>相关人员</td>
        <td>所属城市</td>
        <td>创建人</td>
        <td>操作</td>
    </tr>
    {volist name="data" id="row"}
    <tr>
        <td>{$row.xlbh}</td>
        <td>{$row.xlmc}</td>
        <td class="text-left">{$row.bfwd}</td>
        <td class="text-left">{$row.xgry}</td>
        <td>{$row.sscs}</td>
        <td>{$row.cuser}</td>
        <td><a href="javscript:;" rol="button" data-id="{$row.id}" class="qiyong">启用</a></td>
    </tr>
    {/volist}
    <!--  <tr>
       <td>0001</td>
       <td>0001A</td>
       <td class="text-left">百家金田店，扁鹊容山商场，卜蜂莲花花都分店</td>
       <td class="text-left">张晓明</td>
       <td>南京市</td>
       <td>张晓明</td>
       <td><a href="javascript:;">网点分布图</a>&nbsp;<a href="javascript:;">修改</a>&nbsp;<a href="javascript:;">删除</a></td>
     </tr> -->
</table>
<h5 class="text-center" style="font-size: 13px;font-weight: 500">
    <!--总共有12条记录，第1/2页,当前页<input id="page" type="text" style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span
        id="fistpage">首页</span>&nbsp;&nbsp;
    每页显示
    <select id="pagesize">
        <option value='10' selected>10条</option>
        <option value='15'>15条</option>
        <option value='20'>20条</option>

    </select>-->
    {$page}
</h5>
<!--<h3 class="text-center"><img src="__STATIC__/layout/img/zwsj.png"></h3>-->

<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    //启用
    $('.qiyong').click(function () {
        var id = $(this).data('id')
        swal({
            title: "您确定要启用这条信息吗",
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "启用",
            closeOnConfirm: false
        }, function () {
            $.ajax({
                'type':'post',
                'url':'{:url("qiyongline")}',
                'data':{'id':id},
                'dataType':'json',
                'success':function (data) {
                    if(data.success){
                        location.reload()
                    }else
                        swal(data.msg, "", "error");
                }
            })

        });
    });
    function back() {
        history.go(-1);
    }

    $(function () {
        $('body').on('click', 'input[type=text]', function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    $(document).ready(function () {
        $('#reset').on('click', function () {
            $("#form1 input").each(function () {
                $(this).val('');
            });
            $("#form1 select").each(function () {
                $(this).val('');
            });
            $('#form1').submit()
            return false
        });

    })

</script>
</body>

</html>